package com.yuanqi.java.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuanqi.java.dto.PurchaseStatisticsOverviewVO;
import com.yuanqi.java.dto.PurchaseStatisticsQueryDTO;
import com.yuanqi.java.dto.PurchaseStatisticsVO;
import com.yuanqi.java.mapper.PurchaseStatisticsMapper;
import com.yuanqi.java.service.IPurchaseStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 采购统计服务实现类
 * </p>
 *
 * @author author
 * @since 2025-09-04
 */
@Service
public class PurchaseStatisticsServiceImpl implements IPurchaseStatisticsService {

    @Autowired
    private PurchaseStatisticsMapper purchaseStatisticsMapper;

    @Override
    public Page<PurchaseStatisticsVO> pageQuery(Page<PurchaseStatisticsVO> page, PurchaseStatisticsQueryDTO queryDTO) {
        return purchaseStatisticsMapper.selectStatisticsPage(page, queryDTO);
    }

    @Override
    public PurchaseStatisticsOverviewVO getOverview(PurchaseStatisticsQueryDTO queryDTO) {
        return purchaseStatisticsMapper.selectOverview(queryDTO);
    }
} 